#include<string.h>
#include<signal.h>
#include"log.hpp"


Log log;
void myhandler(int signal)
{
    log(Error, "error string: %s, error code: %d", strerror(errno), errno);
    exit(1);
}
int main()
{
    log.Enable(Classfile);
    signal(8, myhandler);
    int a = 0;
    int b = 10;
    log(Info, "hello");
    int c = 10 / 0; 
    return 0;
}